package com.ny20231079080.dao;

import com.ny20231079080.entity.Student;

import java.sql.SQLException;

public interface StudentDao {
    Student login(String name, String password) throws Exception;
    int insertStudent(Student student) throws SQLException,ClassNotFoundException;
    Student findById(int studentId) throws SQLException, ClassNotFoundException;
    int update(Student student) throws SQLException, ClassNotFoundException;

}
